<?php

namespace Bete\Validation;

use Bete\Foundation\ServiceProvider;

class ValidationServiceProvider extends ServiceProvider
{
    public $defer = true;

    public function register()
    {
        $this->app->singleton('validator', function ($app) {
            return new Factory($app);
        });
    }

    public function providers()
    {
        return ['validator'];
    }
}
